import { DataDisplay, List, ListView, Table, TableFile, WaterfallsH } from '@icon-park/vue-next';
import { markRaw } from 'vue';

const table = () => import('@/views/data/table/index.vue');
const list = () => import('@/views/data/list/index.vue');
const water = () => import('@/views/data/waterfall/index.vue');
const card = () => import('@/views/data/card/index.vue');

const pages = {
  path: '/data',
  name: 'data',
  redirect: '/data/table',
  meta: {
    icon: markRaw(DataDisplay),
    title: '数据'
  },
  children: [
    {
      path: 'table',
      name: 'data_table',
      meta: {
        icon: markRaw(Table),
        title: '表格页'
      },
      component: table
    },
    {
      path: 'list',
      name: 'data_list',
      meta: {
        icon: markRaw(List),
        title: '列表页'
      },
      component: list
    },
    {
      path: 'water',
      name: 'data_water',
      meta: {
        icon: markRaw(WaterfallsH),
        title: '瀑布流列表'
      },
      component: water
    },
    {
      path: 'card',
      name: 'data_card',
      meta: {
        icon: markRaw(WaterfallsH),
        title: '卡片式'
      },
      component: card
    }
  ]
};
export default pages;
